---
title: 'BambooHR (Basic Auth)'
sidebarTitle: 'BambooHR (Basic Auth)'
description: 'Access the BambooHR API in 2 minutes 💨'
---

import { StatusWidget } from "/snippets/api-down-watch/status-widget.jsx"

<StatusWidget service="bamboohr" />

<Tabs>
  <Tab title="🚀 Quickstart">
    <Steps>
      <Step title="Create an integration">
        In Nango ([free signup](https://app.nango.dev)), go to [Integrations](https://app.nango.dev/dev/integrations) -> _Configure New Integration_ -> _BambooHR (Basic Auth)_.
      </Step>
      <Step title="Authorize BambooHR">
        Go to [Connections](https://app.nango.dev/dev/connections) -> _Add Test Connection_ -> _Authorize_, then enter your BambooHR API key and Subdomain. Later, you'll let your users do the same directly from your app.
      </Step>
      <Step title="Call the BambooHR API">
        Let's make your first request to the BambooHR API (fetch employees information). Replace the placeholders below with your [secret key](https://app.nango.dev/dev/environment-settings), [integration ID](https://app.nango.dev/dev/integrations), and [connection ID](https://app.nango.dev/dev/connections):
        <Tabs>
            <Tab title="cURL">

                ```bash
                curl -X POST "https://api.nango.dev/proxy/v1/reports/custom?format=JSON" \
                  -H "Authorization: Bearer <NANGO-SECRET-KEY>" \
                  -H "Provider-Config-Key: <INTEGRATION-ID>" \
                  -H "Connection-Id: <CONNECTION-ID>" \
                  -H "Content-Type: application/json" \
                  -d '{
                      "title": "Current Employees",
                      "fields": [
                          "id",
                          "employeeNumber",
                          "firstName",
                          "lastName",
                          "dateOfBirth",
                          "address1",
                          "bestEmail"
                      ]
                    }'
                ```
            </Tab>

            <Tab title="Node">

            Install Nango's backend SDK with `npm i @nangohq/node`. Then run:

            ```typescript
            import { Nango } from '@nangohq/node';

            const nango = new Nango({ secretKey: '<NANGO-SECRET-KEY>' });

            const res = await nango.post({
                endpoint: '/v1/reports/custom',
                params: {
                    format: 'JSON'
                },
                providerConfigKey: '<INTEGRATION-ID>',
                connectionId: '<CONNECTION-ID>',
                data: {
                    "title": "Current Employees",
                    "fields": [
                        "id",
                        "employeeNumber",
                        "firstName",
                        "lastName",
                        "dateOfBirth",
                        "address1",
                        "bestEmail"
                    ]
                }
            });

            console.log(res.data);
            ```
            </Tab>

        </Tabs>

        Or fetch credentials dynamically via the [Node SDK](/reference/sdks/node#get-a-connection-with-credentials) or [API](/reference/api/connection/get).
      </Step>
    </Steps>

    ✅ You're connected! Check the [Logs](https://app.nango.dev/dev/logs) tab in Nango to inspect requests.

    <Tip>
    Next step: [Embed the auth flow](/getting-started/quickstart/embed-in-your-app) in your app to let your users connect their BambooHR accounts.
    </Tip>
  </Tab>
  <Tab title="🔗 Useful links">
    | Topic | Links |
    | - | - |
    | Authorization | [Guide to connect to BambooHR (Basic Auth) using Connect UI](/integrations/all/bamboohr-basic/connect) |
    | General | [BambooHR Website](https://www.bamboohr.com/) |
    | | [BambooHR Dashboard](https://app.bamboohr.com/login/) |
    | Developer | [API Authentication](https://documentation.bamboohr.com/docs/getting-started#authentication) |
    | | [API Reference](https://documentation.bamboohr.com/reference/time-tracking-1) |

    <Note>Contribute useful links by [editing this page](https://github.com/nangohq/nango/tree/master/docs/integrations/all/bamboohr-basic.mdx)</Note>
  </Tab>
  <Tab title="🚨 API gotchas">
    _None yet, add yours!_

    <Note>Contribute API gotchas by [editing this page](https://github.com/nangohq/nango/tree/master/docs/integrations/all/bamboohr-basic.mdx)</Note>
  </Tab>
</Tabs>

<Info>
    Questions? Join us in the [Slack community](https://nango.dev/slack).
</Info>
